package com.xdcplus.web.mapper;

import com.xdcplus.mp.mapper.IBaseMapper;
import com.xdcplus.web.common.pojo.dto.DwWorkDateDTO;
import com.xdcplus.web.common.pojo.entity.DwWorkDate;
import com.xdcplus.web.common.pojo.vo.DwWorkDateVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工作日表(DwWorkDate)表数据库访问层
 *
 * @author ma.qing
 * @since 2023-07-12 17:53:15
 */
public interface DwWorkDateMapper extends IBaseMapper<DwWorkDate> {

    List<DwWorkDateVO> findAllYear();

    List<DwWorkDateVO> findMonth(DwWorkDateDTO dwWorkDateDTO);

    List<DwWorkDateVO> findWeek(DwWorkDateDTO dwWorkDateDTO);

    List<DwWorkDateVO> findDay(DwWorkDateDTO dwWorkDateDTO);

    void buildDwWorkDate(@Param("year") String year);

    void deleteByYear(@Param("year") String year);

    List<DwWorkDateVO> findWeekByMonth(DwWorkDateDTO dwWorkDateDTO);
}
